package ups.glre.news.service;

import java.util.List;

import javax.ejb.Local;

import ups.glre.news.model.Category;

@Local
public interface CategoryService {
	public void createCategory();
	public void createCategory(String categoryName);
	public List<Category> getAllCategory();
	public void subscribeUserToCategory(int userId, int categoryId);
	public void subscribeUserToCategory(int userId, String[] categoriesId);
	public void unSubscribeUserFromCategory(int userId, int categoryId);	
	public void unSubscribeUserFromCategory(int userId, String[] categoriesId);
	public void populateCategoryTables();
	public Category getCategoryByName(String categoryName);
}
